﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ordem_servico_apontamento.aspx.cs" Inherits="softsales.pagina.ordem_servico.ordem_servico_apontamento" %>
<%@ MasterType VirtualPath="~/Site.Master" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Cabecalho" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ConteudoPrincipal" runat="server">

            <div class="inner-page-title">
                <h2><asp:Label ID="LBL_TITULO_PAGINA" runat="server" Text="Dados da Ordem de Serviço"></asp:Label></h2>
                    
                </div>	

<div class="content-box">
                    <div class="softsales-form">
    <div class="softsales-form-linha">

<div class="grid_3">
        NUM_ORDEM SERVIÇO
        <div class="softsales-form-campo">
            <asp:TextBox ID="TXT_NUM_OS" runat="server" 
                CssClass="campo-text requerido large" ReadOnly="True"></asp:TextBox>
        </div>                           
    </div>

<div class="grid_9">
        <label for="Label_ID_EMPRESA">
        EMPRESA</label>
        <div class="softsales-form-campo">
            <asp:DropDownList ID="DDL_ID_EMPRESA" runat="server"  
                CssClass="campo-select full requerido" 
                >
            </asp:DropDownList>
        </div>                           
        <div class="softsales-form-error">
            <asp:RequiredFieldValidator ID="RFV_ID_EMPRESA" runat="server" 
                ControlToValidate="DDL_ID_EMPRESA" ErrorMessage="Campo Requerido"></asp:RequiredFieldValidator>
        </div>
    </div>
                
<div class="clear"></div>
</div>                                                  
                      
                        
                        
                        
<div class="softsales-form-linha"><div class="grid_3"><label for="Label_ID_CLI_FOR">CÓDIGO</label> 
              
<div class="softsales-form-campo"><asp:TextBox ID="TXT_ID_CLI_FOR" runat="server" 
CssClass="campo-text large requerido apenas_numeros"></asp:TextBox></div>
                                       
                        </div><div class="grid_9"><label for="Label_NOME_RAZAO_SOCIAL">NOME/RAZÃO SOCIAL</label> <div class="softsales-form-campo">
    <asp:TextBox CssClass="campo-select requerido" 
    ID="TXT_NOME_CLI_FOR" runat="server" Width="100%" Enabled="False"></asp:TextBox></div></div>
                        
    <div class="clear"></div></div>

                         <div class="softsales-form-linha">
                 
                        <div class="grid_2">
                            <label for="Label_ID_OS_GARANTIA">
                            OS. GARANTIA</label>
                            <div class="softsales-form-campo">
                                <asp:TextBox ID="TXT_ID_OS_GARANTIA" runat="server" 
                                    CssClass="campo-text apenas_numeros large"></asp:TextBox>
                            </div>                           
                        </div>


                        <div class="grid_3">
                            <label for="Label_ID_TIPO_ORDEM_SERVICO">
                            TIPO_ORDEM DE SERVIÇO</label>
                            <div class="softsales-form-campo">
                                <asp:DropDownList ID="DDL_ID_TIPO_ORDEM_SERVICO" runat="server" 
                                    CssClass="campo-select requerido full"  >
                                </asp:DropDownList>
                            </div>
                            <div class="softsales-form-error">
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="DDL_ID_TIPO_ORDEM_SERVICO" ErrorMessage="Campo Requerido"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                
                <div class="grid_3">
                            <label for="Label_ID_SITUACAO_ORDEM_SERVICO">
                            SITUACAO_ORDEM DE SERVIÇO</label>
                            <div class="softsales-form-campo">
                                <asp:DropDownList ID="DDL_ID_SITUACAO_ORDEM_SERVICO" runat="server" 
                                    CssClass="campo-select requerido full">
                                </asp:DropDownList>
                            </div>
                            <div class="softsales-form-error">
                                <asp:RequiredFieldValidator ID="RFV_ID_SITUACAO_ORDEM_SERVICO" runat="server" 
                                    ControlToValidate="DDL_ID_SITUACAO_ORDEM_SERVICO" ErrorMessage="Campo Requerido"></asp:RequiredFieldValidator>
                            </div>
                        </div>
                
            
                         <div class="grid_2"><label for="Label_PLACA">PLACA</label> <div class="softsales-form-campo">
                        <asp:TextBox CssClass="campo-text requerido placa large" ID="TXT_PLACA" runat="server"></asp:TextBox></div></div>

                        <div class="grid_2"><label for="Label_KM">KM</label> <div class="softsales-form-campo">
                        <asp:TextBox CssClass="campo-text large" ID="TXT_KM" runat="server"></asp:TextBox></div></div>

                        
                        <div class="clear"></div></div>
                            
                        <div class="softsales-form-linha">
                    <div class="grid_2"><label for="Label_DT_EMISSAO">DT_EMISSAO</label> <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text data large" ID="TXT_DT_EMISSAO" runat="server"></asp:TextBox></div></div>
                   <div class="grid_2"><label for="Label_DT_ENTRADA">DT_ENTRADA</label> <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text data large" ID="TXT_DT_ENTRADA" runat="server"></asp:TextBox></div></div>
                    <div class="grid_2"><label for="Label_DT_ENTREGA">DT_ENTREGA</label> <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text data large" ID="TXT_DT_ENTREGA" runat="server"></asp:TextBox></div></div>
                    
                    <div class="grid_2"><label for="Label_DT_APROVACAO">DT_APROVACAO</label> <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text data large" ID="TXT_DT_APROVACAO" runat="server"></asp:TextBox></div></div>
                    <div class="grid_2"><label for="Label_DT_VALIDADE">DT_GARANTIA</label> <div class="softsales-form-campo">
                        <asp:TextBox CssClass="campo-text data large" ID="TXT_DT_GARANTIA" runat="server"></asp:TextBox></div></div>
                        <div class="grid_2"><label for="Label_DT_FECHAMENTO">DT_FECHAMENTO</label> <div class="softsales-form-campo">
                        <asp:TextBox CssClass="campo-text data large" ID="TXT_DT_FECHAMENTO" runat="server"></asp:TextBox></div></div>
                        
                        <div class="clear"></div></div>

                        
                        </div>

                </div>

         <div class="inner-page-title">
                <h2><asp:Label ID="Label2" runat="server" Text="Produtos e Serviços"></asp:Label></h2>
                    
                </div>	

<div class="content-box">

                <div class="softsales-form"><div class="softsales-form-linha"><div class="grid_2"><label for="Label_DESCRICAO">CÓD. PROD/SERV</label> <div class="softsales-form-campo"><asp:TextBox ID="TXT_ID_PRODUTO_SERVICO" CssClass="campo-text large requerido apenas_numeros" runat="server"></asp:TextBox><asp:ImageButton ID="IMG_BTN_ABRIR_MODAL_PRODUTO" runat="server" OnClientClick="OpenModal('../produto/produto_modal.aspx','','400','800');" 
                        CausesValidation="False" ImageUrl="~/images/icons/application.gif" /></div></div>
                    <div class="grid_10"><label for="Label_DESCRICAO">DESCRICAO</label> <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text full requerido" ID="TXT_DESCRICAO" runat="server"></asp:TextBox></div></div>
                        
                        <div class="clear"></div></div><div class="softsales-form-linha">
                        <div class="grid_2"><label for="Label_VALOR_UNITARIO">VLR_UNITARIO</label> <div class="softsales-form-campo">
                    <asp:TextBox CssClass="campo-text moeda requerido vlr_unitario large" 
                        ID="TXT_VALOR_UNITARIO" runat="server"></asp:TextBox></div></div>
                        <div class="grid_2"><label for="Label_QTD">QTD</label> <div class="softsales-form-campo">
                    <asp:TextBox CssClass="campo-text requerido apenas_numeros large" ID="TXT_QTD" 
                        runat="server"></asp:TextBox></div></div>
                        
                        <div class="grid_2"><label for="Label_VALOR_DESCONTO">VLR_DESCONTO</label> <div class="softsales-form-campo">
                    <asp:TextBox CssClass="campo-text moeda large" MaxLength="10" 
                        ID="TXT_VALOR_DESCONTO" runat="server"></asp:TextBox></div></div><div class="grid_2"><label for="Label_VALOR_OUTRO">VLR_OUTRO</label> <div class="softsales-form-campo">
                    <asp:TextBox CssClass="campo-text moeda large" MaxLength="10" 
                        ID="TXT_VALOR_OUTRO" runat="server"></asp:TextBox></div></div>
                      
                        <div class="grid_2"><label for="Label_VALOR_TOTAL">VALOR_TOTAL ITEM</label> <div class="softsales-form-campo">
                            <asp:TextBox CssClass="campo-text moeda requerido large" 
                                ID="TXT_VALOR_TOTAL_ITEM" runat="server"></asp:TextBox></div></div>
                        
                        <div class="grid_2"><div class="float-right"><asp:Button ID="BTN_INCLUIR_ITEM" runat="server" Text="INCLUIR"  CausesValidation="False"
                    onclick="BTN_INCLUIR_ITEM_Click" /></div></div><div class="clear"></div></div></div>
                    
                    <asp:Panel ID="PNL_ORDEM_SERVICO_ITEM" runat="server" ><div class="content-box">
                    <div class="softsales-form"><div class="softsales-tabela"><asp:GridView ID="GRV_TB_ORDEM_SERVICO_ITEM" runat="server" 
         onsorting="GRV_TB_ORDEM_SERVICO_ITEM_Sorting" AllowSorting="True"  DataKeyNames="id"
         onpageindexchanging="GRV_TB_ORDEM_SERVICO_ITEM_PageIndexChanging" 
        AutoGenerateColumns="False"  EnableModelValidation="True">
        <Columns>
         <asp:BoundField DataField="id" HeaderText="ID" SortExpression="id" />
            <asp:BoundField 
                        HeaderText="COD." DataField="id_produto_servico" 
                            SortExpression="id_produto_servico" />
                        <asp:BoundField DataField="descricao" HeaderText="DESC PRODUTO/SERVIÇO" 
                SortExpression="descricao"  /><asp:BoundField DataField="qtd"  HeaderText="QTD" 
                SortExpression="qtd"  /><asp:BoundField DataField="valor_unitario" DataFormatString="{0:C}" HeaderText="VLR_UNIT." 
                SortExpression="valor_unitario"  /><asp:BoundField DataField="valor_total" DataFormatString="{0:C}" HeaderText="VLR_TOTAL" 
                SortExpression="valor_total"  /><asp:BoundField DataField="valor_desconto" DataFormatString="{0:C}" HeaderText="VLR_DESC." 
                SortExpression="valor_desconto"  /><asp:BoundField DataField="valor_outro" DataFormatString="{0:C}" HeaderText="VLR_OUTRO" 
                SortExpression="valor_outro"  />
                        <asp:TemplateField><ItemTemplate><asp:ImageButton ID="IMG_BTN_EXCLUIR" CssClass="botao-excluir" runat="server" ImageUrl="~/images/icons/action_delete.gif"  onclick="IMG_BTN_EXCLUIR_Click"   CommandArgument='<%# Eval("id") %>' CausesValidation="false"   /></ItemTemplate></asp:TemplateField></Columns><FooterStyle CssClass="footerGridView" /><HeaderStyle CssClass="headerGridView" /><PagerStyle CssClass="pagerGridView"  /><RowStyle CssClass="itemGridView" /></asp:GridView></div>
                                    
                        
                        </div></div></asp:Panel>
                        
                        

</div>
               
                            
          <div class="inner-page-title">
                <h2><asp:Label ID="Label4" runat="server" Text="Descrição Serviço"></asp:Label></h2>
                    
                </div>	
  
<div class="content-box">

        
                  <div class="softsales-form"><div class="softsales-form-linha"><div class="grid_12">
                        DESCRIÇÃO DO SERVIÇO<div class="softsales-form-campo">
                            <asp:TextBox CssClass="campo-text full" ID="TXT_DESC_SERVICO"   
                                TextMode="MultiLine" Rows="10" runat="server"></asp:TextBox>
                     
                        </div></div>
                        
                        <div class="clear"></div>
                        </div></div>
</div>
        
  <div class="inner-page-title">
                <h2><asp:Label ID="Label1" runat="server" Text="Valores da Ordem de Serviço"></asp:Label></h2>
                    
                </div>	
        

        <div class="content-box">
        
            <div class="softsales-form">

            <div class="softsales-form-linha">		

            <div class="grid_2">		
        
        
        <!-- CAMPO DECIMAL -->
            <label for="Label_VALOR_TOTAL_SERVICO">TOTAL_SERVICO</label>
            <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text moeda large" 
                    ID="TXT_VALOR_TOTAL_SERVICO" runat="server" ReadOnly="True"></asp:TextBox></div>
        </div>


             <div class="grid_2">		
        
        
        <!-- CAMPO DECIMAL -->
            <label for="Label_VALOR_TOTAL_PRODUTO">TOTAL _PRODUTO</label>
            <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text moeda large" 
                    ID="TXT_VALOR_TOTAL_PRODUTO" runat="server" ReadOnly="True"></asp:TextBox></div>
        </div>

         <div class="grid_2">		
        
        
        <!-- CAMPO DECIMAL -->
            <label for="Label_VALOR_TOTAL_DESCONTO">TOTAL_DESCONTO</label>
            <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text moeda large" 
                    ID="TXT_VALOR_TOTAL_DESCONTO" runat="server" ReadOnly="True"></asp:TextBox></div>
        </div>
        
        <div class="grid_2">		
        
        
        <!-- CAMPO DECIMAL -->
            <label for="Label_VALOR_TOTAL_OUTRO">TOTAL OUTRO</label>
            <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text moeda large" 
                    ID="TXT_VALOR_TOTAL_OUTRO" runat="server" ReadOnly="True"></asp:TextBox></div>
        </div>

        <div class="grid_2">		
        
        
        <!-- CAMPO DECIMAL -->
            <label for="Label_VALOR_TOTAL_IPI">TOTAL IPI</label>
            <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text moeda large" 
                    ID="TXT_VALOR_TOTAL_IPI" runat="server" ReadOnly="True"></asp:TextBox></div>
        </div>
        
       
        <div class="grid_2">		
        
        
        <!-- CAMPO DECIMAL -->
            <label for="Label_VALOR_TOTAL_ORDEM_SERVICO">TOTAL_ORDEM_SERVIÇO</label>
            <div class="softsales-form-campo"><asp:TextBox CssClass="campo-text moeda large"  
                    ID="TXT_VALOR_TOTAL_ORDEM_SERVICO" runat="server" ReadOnly="True"></asp:TextBox></div>
        </div>
            

                <div class="clear"></div>
            </div>
            
   
            </div>

           

        </div>

         <div class="content-box">
            <div class="softsales-form">
            <div class="softsales-form-linha">
        <asp:Button CssClass="botao-salvar" ID="BTN_SALVAR" runat="server" Text="Salvar" 
                    onclick="BTN_SALVAR_Click" />
        <asp:Button CssClass="botao-cancelar" ID="BTN_CANCELAR"  CausesValidation="False" 
                    runat="server" Text="Cancelar" onclick="BTN_CANCELAR_Click" />
        <asp:HiddenField ID="HF_ID" runat="server" />
                <asp:HiddenField ID="HF_ID_ITEM" runat="server" />
        </div>
            
            </div>
            
            </div>


               
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ConteudoEsquerda" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ConteudoDireita" runat="server">
</asp:Content>
